<!-- 列表 -->
<template>
  <div class="page-box h100 display-flex czbj">
      <p class="title-label">列表</p>
   
          <dxtable :headBtn="headBtn"  class="mt20"   :dataJson="dataJson"  :formJson="formJson" :portUrl="portUrl" :qx="qx" ref="databale"></dxtable>
   
  </div>
</template>
<script lang='ts' setup>
import dxtable from "./../../components/util/dxtable.vue";
import sort from "./../../components/util/sort.vue";
import { dxget, dxpost, qurl, hf,outInt } from "./../../util/index";
import { h, ref, reactive } from "vue";
const props = defineProps({
  pup: { type: String },
});
const ishjwoer  = ref(false)
let headBtn = [];
const databale = ref();
const initeer = () => {
  databale.value.initDataExpose();
};
const typeli = ref([])
const emit = defineEmits(["callBack"]);
// 弹窗公用该列表
let dataJson = reactive([
  {
      title: "编码",
      key: "code",
      search: true, // 是否在搜索栏展示
  },
  {
      title: "跳转链接",
      key: "url",
  },
  {
      title: "备注",
      key: "remark",
      search: true, // 是否在搜索栏展示
  },
  {
      title: "排序",
      width: 100,
      render(row) {
          row.databaseName = "InvitationList";
          return h(sort, {
              row,
              onCallBack: () => {
                  initeer();
              },
          });
      },
  },
  

  
  {
      title: "添加时间",
      key: "addTime",
      width: "200",
      type: "daterange",
  },
]);
let portUrl = "InvitationList?qxid="+localStorage.Userid
const extra = ref({
  roleId: localStorage.id
});
if(localStorage.Userid==119){
  outInt()
}
const qx = {
  DeletePermissionID: "ivlistdel", //删除
  EditPermissionIdentifier: "ivlistbj", // 编辑
  NewPermissionIdentifier: "ivlistxz", // 新建
  ViewPermissionID: "ivlistck", // 查看
};


let formJson = ref([
{
      title: "编码",
      key: "code",
      type:"input"
  },
  {
      title: "跳转链接",
      key: "url",
      type:"input",
      span:24
  },
  {
      title: "备注",
      key: "remark",
      type:"textarea",
      span:24
  },
  {
      title: "备注",
      key: "qxid",
      span:24,
      val:'120'
  },

])



</script>


